package io.github.wanggit.antrpc.console.dao;

import io.github.wanggit.antrpc.console.domain.ProviderRateLimiting;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ProviderRateLimitingRepository extends JpaRepository<ProviderRateLimiting, Long> {

    ProviderRateLimiting findByMethodMd5(String methodMd5);

    List<ProviderRateLimiting> findAllByClassMd5(String classMd5);
}
